home *** CD-ROM | disk | FTP | other *** search
- From: SCMarney@msn.com (Stephen Marney)
- Subject: RE: Reading derived-class objects in from a file -- possible?
- Date: 4 Jan 96 00:54:19 -0800
- References: <4ceho4$re6@lace.colorado.edu>
- Message-ID: <00001a81+00008769@msn.com>
- Path: news.msn.com!msn.com
- Newsgroups: comp.lang.c++
- Organization: The Microsoft Network (msn.com)
-
- For what it's worth, I've used the code fragment below to Load and
- instantiate an arbitrary class from an archive. (Using Visual C++ 4.0)
-
- CRuntimeClass* prc = CRuntimeClass::Load(ar, &wSchema);
- CObject* pObj = prc->CreateObject();
-